package views
{
	import assists.log.Log;
	
	import flash.events.Event;
	import flash.events.IOErrorEvent;
	import flash.net.URLRequest;
	import flash.net.URLRequestMethod;
	
	import inerface.IGetMorePanel;
	
	import main.ViewSubBase;
	
	import panel.getMore.GetMorePanel;
	
	public class GetMoreView extends ViewSubBase
	{
		private var _panel:IGetMorePanel;
		
		public function GetMoreView()
		{
		}
		
		public override function show():void
		{
			render();
		}
		
		protected override function render():void
		{
			if(_panel == null){
				_panel = new GetMorePanel();
				_panel.init(view.layout.stage,view.resourceLoader,view.lang,view.uri);
			}
			
			this.addView(_panel);
			
			changeThisState();
		}
		
		private function changeThisState():void
		{
			var list:Array = [{name:"关于我们",func:showAboutUs},{name:"设置",func:setFunc},{name:"清理缓存",func:clearAll}];
			_panel.changeData(list);
		}
		
		private function setFunc():void
		{
			trace("set");
			this.view.panelSet.show();
		}
		
		public override function clear():void
		{
			_panel.clear();
		}
		
		public override function close():void
		{
			closeView(this);
		}
		
		private function showAlert():void
		{
			view.alert.showAlert("哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈","亮","鸡鸡",showHAHA,showHEIHEI);
			function showHAHA():void
			{
			}
			
			function showHEIHEI():void
			{
			}
		}
		
		private function showAboutUs():void
		{
			view.aboutUs.show();
		}
		
		private function showTextMap():void
		{
			view.testMap.show();
		}
		
		private function clearAll():void
		{
			view.clearAll.show();
		}
		
		private function testFile():void
		{
			trace(view.uri.checkExist("chishan.jpg"));
		}
	}
}